<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>dayjs</title>
</head>

<body>
  <script src="https://cdn.jsdelivr.net/npm/lodash@4.17/lodash.min.js"
    integrity="sha256-qXBd/EfAdjOA2FGrGAG+b3YBn2tn5A6bhz+LSgYD96k=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.7/dayjs.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.7/plugin/advancedFormat.min.js"
    integrity="sha512-oOF6H/+bcZjL9xEZ71lPxWSLn62axEgf6jDBuge0rTy7HjcMmWLQ7Y46WVC0m1hGibeYyTeHLi1ZUrZTvt2QxQ=="
    crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.7/plugin/customParseFormat.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.7/plugin/quarterOfYear.min.js"></script>

  <script>
    // dayjs.extend(window.dayjs_plugin_customParseFormat);
    // dayjs.extend(window.dayjs_plugin_quarterOfYear);
    // dayjs.extend(window.dayjs_plugin_AdvancedFormat);
  </script>
  <script>
    // const now = dayjs('2023-Q4', 'YYYY-\QQ');
    // console.log('now-', now.format('YYYY-\QQ'));
    // const ret = _.isPlainObject(1)
    // console.log('===ret===>', ret)



    // function foo() {
    //   try {
    //     a
    //     console.log('===try===>',)
    //     return (() => {
    //       console.log('===FIIE===>',)
    //     })()
    //   } catch {
    //     return 0
    //     console.log('===error===>',)
    //   } finally {
    //     console.log('===finally===>',)
    //     // return 1
    //   }
    //   console.log('===主线程===>',)
    //   return 4
    // }
    // const res = foo()
    // console.log('===res===>', res)

    function each(arr) {
      const list = []
      arr.forEach((v, i) => {
        console.log('===v===>', v)
        if (i === 0) {
          throw 999
        }
        list.push(v)
      })
      return list
    }
    const res = each([11, 22, 33, 44])
    // console.log('===res===>', res)
  </script>
</body>

</html>